import "@site/src/languages/highlight";

# ClipNode

**Description:**

&emsp;&emsp;A Node that can clip its children based on the alpha values of its stencil.

**Class Object:** [ClipNode Class](/docs/api/Class%20Object/ClipNode).

**Inherits from:** [Node](/docs/api/Class/Node).

## stencil

**Type:** Field.

**Description:**

&emsp;&emsp;The stencil Node that defines the clipping shape.

**Signature:**
```tl
stencil: Node
```

## alphaThreshold

**Type:** Field.

**Description:**

&emsp;&emsp;The minimum alpha threshold for a pixel to be visible. Value ranges from 0 to 1.

**Signature:**
```tl
alphaThreshold: number
```

## inverted

**Type:** Field.

**Description:**

&emsp;&emsp;Whether to invert the clipping area.

**Signature:**
```tl
inverted: boolean
```